
public class Test {
	public static void main(String argv[])
	{
		Vecto v=new Vecto ();
		v.adauga(2);
		v.adauga(3);
		v.adauga(1);
		v.adauga(9);
		v.adauga(6);
		System.out.println("Elementele vectorului sunt:");
		v.afis();
		v.elem(3);
		System.out.println("Sterge primul element");
		v.sterge(0);
		System.out.println("Elementele vectorului sunt:");
		v.afis();
		
		
		Lista l=new Lista();
		l.adauga("2");
		l.adauga("9");
		l.adauga("4");
		l.adauga("3");
		System.out.println("Elementele listei sunt:");
		l.afis();
		System.out.println("Sterge primul element");
		l.sterge("2");
		System.out.println("Elementele listei sunt:");
		l.afis();
		System.out.println("Insereaza elementul 0 pe prima pozitie");
		l.insert("0", 0);
		System.out.println("Elementele listei sunt:");
		l.afis();
		
		
		Multime m=new Multime();
		m.adauga(2);
		m.adauga(9);
		m.adauga(4);
		m.adauga(3);
		Multime m2=new Multime();
		m2.adauga(2);
		m2.adauga(7);
		m2.adauga(4);
		m2.adauga(8);
		System.out.println("Elementele multimii sunt:");
		m.afis();
		m.reuniune(m2);
		m.afis();
	
		
		
	}

}
